package hengtiansoft.com.myapplication.view;

import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import hengtiansoft.com.myapplication.BaseActivity;
import hengtiansoft.com.myapplication.R;

/**
 * Created by lu on 16/3/17.
 */
public class FirstVolley extends BaseActivity {

    LinearLayout linearLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.firstview);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initView() {
        linearLayout = (LinearLayout) findViewById(R.id.firstview);
        LayoutInflater inflater = LayoutInflater.from(this);
        View myButton = inflater.inflate(R.layout.mybutton, null);
        myButton.setBackgroundColor(Color.RED);
        linearLayout.addView(myButton);
    }

    @Override
    public void initData() {

    }
}
